﻿using HeinQi.Framework.LayerBases;
using PagedList;
using TbShop.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TbShop.Web.Areas.Admin.Models
{
    public class BaseViewModel
    {
        public int Id { get; set; }
        public string CreatedBy { get; set; }
        public DateTime CreatedDate { get; set; }
        public string UpdatedBy { get; set; }
        public DateTime UpdatedDate { get; set; }
        public int VersionNumber { get; set; }
    }

    public class BaseListViewModel
    {
        public IPagedList Page { get; set; }
    }

    public class ResourceName
    {
        public const string Required = "Required";
        public const string Range = "Range";
        public const string Compare = "Compare";
        public const string Regular = "Regular";
        public const string StringLength = "StringLength";
        public const string StringLengthWithoutMin = "StringLengthWithoutMin";
        public const string IsExist = "IsExist";
    }
}